<%@ page import="ceramicasoledade.Veiculo" %>



<div class="fieldcontain ${hasErrors(bean: veiculoInstance, field: 'cor', 'error')} ">
	<label for="cor">
		<g:message code="veiculo.cor.label" default="Cor" />
		
	</label>
	<g:textField name="cor" value="${veiculoInstance?.cor}"/>
</div>



<div class="fieldcontain ${hasErrors(bean: veiculoInstance, field: 'modelo', 'error')} ">
	<label for="modelo">
		<g:message code="veiculo.modelo.label" default="Modelo" />
		
	</label>
	<g:textField name="modelo" value="${veiculoInstance?.modelo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: veiculoInstance, field: 'motorista', 'error')} required">
	<label for="motorista">
		<g:message code="veiculo.motorista.label" default="Motorista" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="motorista" name="motorista.id" from="${ceramicasoledade.Motorista.list()}" optionKey="id" required="" value="${veiculoInstance?.motorista?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: veiculoInstance, field: 'placa', 'error')} ">
	<label for="placa">
		<g:message code="veiculo.placa.label" default="Placa" />
		
	</label>
	<g:textField name="placa" value="${veiculoInstance?.placa}"/>
</div>

